package com.ruoyi.express.third.dto;

import com.ruoyi.express.third.BaiduInput;
import lombok.Data;

/**
 * 获取Access Token
 * @author chenck
 * @date 2019/3/9 15:09
 */
@Data
public class TokenInput extends BaiduInput<TokenResult> {

    public TokenInput(String client_id, String client_secret) {
        super();
        this.addUrlParam("grant_type", "client_credentials");
        this.addUrlParam("client_id", client_id);
        this.addUrlParam("client_secret", client_secret);
    }
}
